<?php

namespace app\model\system;

use app\model\BaseModel;

/**
 *
 */
class SysConfig extends BaseModel
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = "sys_config";

    public function getFormArray(): array
    {
        return [
            "id" => $this->id,
            "configName" => $this->configName,
            "configKey" => $this->configKey,
            "configValue" => $this->configValue,
            "remark" => $this->remark
        ];
    }

    public function toArray(array $merges = []): array
    {
        $modeArray = $this->getFormArray() + [
            "createTime" => $this->createTime,
            "createBy" => $this->createBy,
            "updateTime" => $this->updateTime,
            "updateBy" => $this->updateBy
        ];
        return $this->merge($modeArray, $merges);
    }
}
